﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using QuanLyHocSinh.HeThongGiaoDien;

namespace QuanLyHocSinh
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_FormClosing(object sender, FormClosingEventArgs e)
        {
            DialogResult dr = MessageBox.Show("Bạn có muốn thoát hay không?", "Thoát chương trình", MessageBoxButtons.OKCancel, 
                MessageBoxIcon.Question); 
            if (dr == DialogResult.Cancel) 
            { 
                e.Cancel = true; 
            } 
        }

        private void thoátToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void tiếpNhậnLớpHọcToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormTiepNhanLopHoc frmTiepNhanLopHoc = new FormTiepNhanLopHoc { MdiParent = this };
            frmTiepNhanLopHoc.Show();
        }

        private void thôngTinToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormThongTin frmThongTin = new FormThongTin { MdiParent = this };
            frmThongTin.Show();
        }

        private void quyĐịnhToolStripMenuItem_Click(object sender, EventArgs e)
        {

        }

        private void Form1_Load(object sender, EventArgs e)
        {
            
        }

        private void TiepNhanHocSinhToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormTiepNhanHocSinh frmTiepNhanHocSinh = new FormTiepNhanHocSinh { MdiParent = this };
            frmTiepNhanHocSinh.Show();

        }

       
    }
}
